import store from '@/store'
import { getToken } from '@/utils/auth'
import { getRoles, getRoleByAdmin } from '@/api/role'

export function setToken(token) {
  if (store.getters.token) {
    return getToken()
  }
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}
